package com.xu.cloud.common.format;

import org.slf4j.helpers.MessageFormatter;

/**
 * Slf4J MessageFormatter, 占位符: ${}
 *
 * @author xuguan
 * @since 2024/1/22
 */
public class Slf4JMessageFormat implements IMessageFormat {
    @Override
    public String format(String messagePattern, Object[] args) {
        return MessageFormatter.arrayFormat(messagePattern, args).getMessage();
    }
}
